<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li v-for="item in weekendList" :key="item.id">
        <div class="wrapper">
          <div class="img-wrapper">
            <img class="img-content"  :src="item.imgUrl" alt="">
          </div>
          <div class="info-wrapper">
            <p class="info-title" v-text="item.title"></p>
            <p class="info-desc" v-text="item.desc"></p>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .title
    line-height: .8rem
    background: #eee
    text-indent: .2rem
  .img-wrapper
    overflow: hidden
    height: 0
    padding-bottom: 37.09%
    width: 100%
    .img-content
      width: 100%
      padding: .1rem 0
  .info-wrapper
    padding: .1rem
    .info-title
      line-height: .54rem
      font-size: .32rem
      ellipsis()
    .info-desc
      line-height: .4rem
      color: #ccc
      ellipsis()
</style>
